<?php
include(dirname(__FILE__).'/../../includes.php5');

include_once($project_path.'/class/user/user.class.php5');
session_start();
include_once($project_path.'/class/fw/dictionary.class.php5');

include_once($project_path.'/class/fw/dictionary.class.php5');

userUser::checkSession();

$page=(isset($_POST['page'])?$_POST['page']:'');
switch($page)
{
	case 'cpicker':
		$file = 'commun/cpicker.tpl';
		break;
	case 'cavatar':
		$file = 'commun/cavatar.tpl';
		break;
	default:
		die();
		break;
}
include_once($project_path.'/class/fw/smarty.class.php5');
$smarty = new fwSmarty();
$smarty->assign('class_name', (isset($_POST['class_name'])?$_POST['class_name']:''));
$smarty->assign('title', (isset($_POST['title'])?$_POST['title']:''));
$smarty->assign('form_post', (isset($_POST['form_post'])?$_POST['form_post']:''));
$smarty->assign('button_ok_function', (isset($_POST['button_ok_function'])?$_POST['button_ok_function']:''));
$smarty->assign('button_cancel_function', (isset($_POST['button_cancel_function'])?$_POST['button_cancel_function']:''));
$smarty->assign('file', $file);

echo "datas='".fwConverter::text2JSString($smarty->getContents('smallPopup.tpl'))."'";
?>